package com.ido4web.model;
// Generated 7 พ.ค. 2557, 12:05:20 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Ido4WebBoardHeader generated by hbm2java
 */
@Entity
@Table(name="ido4_web_board_header"
    ,catalog="ido4db"
)
public class Ido4WebBoardHeader  implements java.io.Serializable {


     private long wbhNo;
     private Ido4SysUser ido4SysUser;
     private String wbhHeaderText;
     private String wbhDescr;
     private Date wbhCreatedDtm;
     private String wbhCreatedByName;
     private Short rowStatus;
     private Integer wbhTotalReply;
     private Integer wbhTotalView;
     private Date wbhLastReplyDtm;
     private Long wbhLastReplyByUserNo;
     private String wbhLastReplyByName;
     private Short wbhStatusIsPinPost;
     private Set<Ido4WebBoardLine> ido4WebBoardLines = new HashSet<Ido4WebBoardLine>(0);

    public Ido4WebBoardHeader() {
    }

	
    public Ido4WebBoardHeader(long wbhNo) {
        this.wbhNo = wbhNo;
    }
    public Ido4WebBoardHeader(long wbhNo, Ido4SysUser ido4SysUser, String wbhHeaderText, String wbhDescr, Date wbhCreatedDtm, String wbhCreatedByName, Short rowStatus, Integer wbhTotalReply, Integer wbhTotalView, Date wbhLastReplyDtm, Long wbhLastReplyByUserNo, String wbhLastReplyByName, Short wbhStatusIsPinPost, Set<Ido4WebBoardLine> ido4WebBoardLines) {
       this.wbhNo = wbhNo;
       this.ido4SysUser = ido4SysUser;
       this.wbhHeaderText = wbhHeaderText;
       this.wbhDescr = wbhDescr;
       this.wbhCreatedDtm = wbhCreatedDtm;
       this.wbhCreatedByName = wbhCreatedByName;
       this.rowStatus = rowStatus;
       this.wbhTotalReply = wbhTotalReply;
       this.wbhTotalView = wbhTotalView;
       this.wbhLastReplyDtm = wbhLastReplyDtm;
       this.wbhLastReplyByUserNo = wbhLastReplyByUserNo;
       this.wbhLastReplyByName = wbhLastReplyByName;
       this.wbhStatusIsPinPost = wbhStatusIsPinPost;
       this.ido4WebBoardLines = ido4WebBoardLines;
    }
   
     @Id 

    
    @Column(name="WBH_NO", unique=true, nullable=false)
    public long getWbhNo() {
        return this.wbhNo;
    }
    
    public void setWbhNo(long wbhNo) {
        this.wbhNo = wbhNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="WBH_CREATED_BY_USER_NO")
    public Ido4SysUser getIdo4SysUser() {
        return this.ido4SysUser;
    }
    
    public void setIdo4SysUser(Ido4SysUser ido4SysUser) {
        this.ido4SysUser = ido4SysUser;
    }

    
    @Column(name="WBH_HEADER_TEXT", length=500)
    public String getWbhHeaderText() {
        return this.wbhHeaderText;
    }
    
    public void setWbhHeaderText(String wbhHeaderText) {
        this.wbhHeaderText = wbhHeaderText;
    }

    
    @Column(name="WBH_DESCR", length=1000)
    public String getWbhDescr() {
        return this.wbhDescr;
    }
    
    public void setWbhDescr(String wbhDescr) {
        this.wbhDescr = wbhDescr;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="WBH_CREATED_DTM", length=19)
    public Date getWbhCreatedDtm() {
        return this.wbhCreatedDtm;
    }
    
    public void setWbhCreatedDtm(Date wbhCreatedDtm) {
        this.wbhCreatedDtm = wbhCreatedDtm;
    }

    
    @Column(name="WBH_CREATED_BY_NAME", length=100)
    public String getWbhCreatedByName() {
        return this.wbhCreatedByName;
    }
    
    public void setWbhCreatedByName(String wbhCreatedByName) {
        this.wbhCreatedByName = wbhCreatedByName;
    }

    
    @Column(name="ROW_STATUS")
    public Short getRowStatus() {
        return this.rowStatus;
    }
    
    public void setRowStatus(Short rowStatus) {
        this.rowStatus = rowStatus;
    }

    
    @Column(name="WBH_TOTAL_REPLY")
    public Integer getWbhTotalReply() {
        return this.wbhTotalReply;
    }
    
    public void setWbhTotalReply(Integer wbhTotalReply) {
        this.wbhTotalReply = wbhTotalReply;
    }

    
    @Column(name="WBH_TOTAL_VIEW")
    public Integer getWbhTotalView() {
        return this.wbhTotalView;
    }
    
    public void setWbhTotalView(Integer wbhTotalView) {
        this.wbhTotalView = wbhTotalView;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="WBH_LAST_REPLY_DTM", length=19)
    public Date getWbhLastReplyDtm() {
        return this.wbhLastReplyDtm;
    }
    
    public void setWbhLastReplyDtm(Date wbhLastReplyDtm) {
        this.wbhLastReplyDtm = wbhLastReplyDtm;
    }

    
    @Column(name="WBH_LAST_REPLY_BY_USER_NO")
    public Long getWbhLastReplyByUserNo() {
        return this.wbhLastReplyByUserNo;
    }
    
    public void setWbhLastReplyByUserNo(Long wbhLastReplyByUserNo) {
        this.wbhLastReplyByUserNo = wbhLastReplyByUserNo;
    }

    
    @Column(name="WBH_LAST_REPLY_BY_NAME", length=100)
    public String getWbhLastReplyByName() {
        return this.wbhLastReplyByName;
    }
    
    public void setWbhLastReplyByName(String wbhLastReplyByName) {
        this.wbhLastReplyByName = wbhLastReplyByName;
    }

    
    @Column(name="WBH_STATUS_IS_PIN_POST")
    public Short getWbhStatusIsPinPost() {
        return this.wbhStatusIsPinPost;
    }
    
    public void setWbhStatusIsPinPost(Short wbhStatusIsPinPost) {
        this.wbhStatusIsPinPost = wbhStatusIsPinPost;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="ido4WebBoardHeader")
    public Set<Ido4WebBoardLine> getIdo4WebBoardLines() {
        return this.ido4WebBoardLines;
    }
    
    public void setIdo4WebBoardLines(Set<Ido4WebBoardLine> ido4WebBoardLines) {
        this.ido4WebBoardLines = ido4WebBoardLines;
    }




}


